// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse
  > div
  > .el-submenu
  > .el-submenu__title
  .el-submenu__icon-arrow {
  display: none;
}

// 修复弹窗中下拉组件的z-index问题
.el-dialog__wrapper {
  .el-select-dropdown,
  .el-picker-panel,
  .el-popper,
  .el-time-panel,
  .el-date-picker__time-header {
    z-index: 3001 !important;
  }
}

// 全局修复Element UI组件在弹窗中的z-index
.el-select-dropdown {
  z-index: 3001 !important;
}

.el-picker-panel {
  z-index: 3001 !important;
}

.el-popper {
  z-index: 3001 !important;
}

.el-time-panel {
  z-index: 3002 !important;
}

.el-date-picker__time-header {
  z-index: 3001 !important;
}

// 优化tooltip样式
.el-tooltip__popper {
  background: #1f2937 !important;
  border: 1px solid #374151 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  max-width: 300px !important;
  padding: 8px 12px !important;
}

.el-tooltip__popper .popper__arrow {
  border-top-color: #1f2937 !important;
}

.el-tooltip__popper .popper__arrow::after {
  border-top-color: #1f2937 !important;
}